package com.wx.bootsecurity.service.impl;

import com.wx.bootsecurity.entity.WxRole;
import com.wx.bootsecurity.mapper.WxRoleMapper;
import com.wx.bootsecurity.service.WxRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 服务实现类
 * </p>
 *
 * @author 阿尔法哲
 * @since 2021-07-22
 */
@Service
public class WxRoleServiceImpl extends ServiceImpl<WxRoleMapper, WxRole> implements WxRoleService {

    @Autowired
    private WxRoleMapper roleMapper;

    @Override
    public List<WxRole> findByIds(List<Long> roleIds) {
        List<WxRole> roleList = roleMapper.selectBatchIds(roleIds);
        return roleList;
    }
}
